package com.quectel.core.module.forum.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author bob
 * @email bob.yu@quectel.com
 * @date 2023/05/10 11:21
 */
@Data
@Schema
public class ForumSensitiveDto implements Serializable {

    /**
    * id
    */
    @Schema(description = "id")
    private Long id;

    /**
    * 租户id
    */
    @Schema(description = "租户id")
    private Long tenantId;

    /**
    * 话题名称
    */
    @Schema(description = "话题名称")
    @NotEmpty
    private String name;

    /**
    * 词量描述
    */
    @Schema(description = "词量描述")
    @NotEmpty
    @Length(min = 1, max = 200)
    private String remark;

    /**
    * 上传url
    */
    @Schema(description = "上传url")
    private String fileId;

    @Schema(description = "上传文件名")
    private String fileName;

    /**
     * 上传文件的词数
     */
    @Schema(description = "上传文件的词数")
    private Integer wordNum;

    /**
    * 状态
    */
    @Schema(description = "状态")
    @NotNull
    private Byte status;

    /**
    * 创建人
    */
    @Schema(description = "创建人")
    private String creator;

    /**
    * 创建时间
    */
    @Schema(description = "创建时间")
    private Date createTime;

    /**
    * 修改人
    */
    @Schema(description = "修改人")
    private String editor;

    /**
    * 修改时间
    */
    @Schema(description = "修改时间")
    private Date editTime;

    /************非数据库字段 start ************/

    /************非数据库字段 end **************/
}
